package com.lfy.event;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.event.SpringApplicationEvent;
import org.springframework.context.ApplicationEvent;

@Getter
public class EventLfyEntity extends ApplicationEvent {

    private Lfy lfy;

    public EventLfyEntity(Object source, Lfy lfy) {
        super(source);
        this.lfy = lfy;
    }
}
@Data
class Lfy{
    String name;
    Long id;
}
